import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {

        System.out.println("请输入一个数：");
        Scanner sc=new Scanner(System.in);

        int p=sc.nextInt();
        for (int i = 0; i < p; i++) {
            System.out.println((int)Math.pow(2, i));
        }


        for (double i=-10.0; i >10.0 ; i++) {
            System.out.println(i);
        }

        for (int i = 2; i <100 ; i+=2) {
            System.out.println(i);
        }

        int a=1;
        int b=1;
        System.out.println(a+" ");
        System.out.println(b+" ");
        int c=a+b;

        for (int i = 1; i <18 ; i++) {
            System.out.println(c+" ");
            a=b;
            b=c;
            c=a+b;
        }

        System.out.println("水仙花数有：");
        for (int num = 100; num < 1000; num++) {
            int geWei = num % 10;
            int shiWei = num / 10 % 10;
            int baiWei = num / 100;


            if ((int) (Math.pow(geWei, 3) + Math.pow(shiWei, 3)+ Math.pow(baiWei, 3)) == num) {
                System.out.println(num);
            }
        }

    }
}
